<template>
	<view class="box" :style="theme">
		<view v-if="info.comments" class="cont">
			<view class="bt">教练评语：</view>
			<view class="py">{{info.comments || ''}}</view>
		</view>
		<image v-for="(item, index) in info.studentImg2" class="tp" @click="previewImage(item, info.studentImg2)" :key="index"
			:src="item" mode="widthFix"></image>
		<!-- <view class="cont">
			<view class="bt">教练评语(学生名称:{{ item.studentName }}):</view>
			<view class="py">{{item.comments || ''}}</view>
		</view> -->
		<!-- <image v-for="(em, indexs) in info.studentImg" class="tp" :key="indexs" :src="em" mode="widthFix"
			@click="previewImage(em, info.studentImg)"></image> -->

		<view v-if="!info.studentImg2 || info.studentImg2.length === 0" class="no-order">
			<image :src="imgHost+'/default_nodata.png'"></image>
			<view>暂未上传课程表现图片</view>
		</view>
	</view>
</template>
<script>
	export default {
		data() {
			return {
				info: {},
				list: [],
				id: ''
			}
		},
		onLoad(ops) {
			let info = JSON.parse(ops.info)
			this.info = info
		},
		methods: {
			jump(url, params, a) {
				this.$app.jump(url, params, a);
			},
			jump2(url, params, a) {
				this.$app.jump2(url, params, a);
			},
			previewImage(e, list) {
				uni.previewImage({
					current: e,
					urls: list
				})
			}
		}

	}
</script>
<style>
	page {
		background: #fff;
	}
</style>
<style scoped lang="scss">
	.box {
		width: 690rpx;
		margin: 0 auto;
		padding-top: 30rpx;

		.cont {
			background: #ECF6FB;
			border-radius: 8rpx;
			box-sizing: border-box;
			margin-bottom: 30rpx;
			padding: 30rpx;
			font-size: 26rpx;
			font-family: PingFangSC-Regular, PingFang SC;
			font-weight: 400;
			color: #333333;

			.bt {
				font-size: 30rpx;
				font-family: PingFangSC-Medium, PingFang SC;
				font-weight: 500;
				color: #333333;
			}
		}

		.tp {
			width: 100%;
			margin-bottom: 24rpx;
		}
	}
</style>